#ifndef CONFIGURATION_H
#define CONFIGURATION_H

#include <iostream>
#include <string>
#include <map>
#include <mutex>
#include <fstream>
#include <filesystem>

using std::string;
using std::map;
namespace fs = std::filesystem;

class Configuration {
public:
    static Configuration* getInstance();
    map<string, string> getConfigMap();
    string getConfigFilePath();
    void loadConfig();

private:
    Configuration();
    string _configFilePath;         // 閰嶇疆鏂囦欢鐨勮矾寰勶紝鎸囧畾浜嗛厤缃�鏂囦欢鐨勪綅缃�
    map<string, string> _configs;   // 閰嶇疆鍐呭��(浠ラ敭鍊煎�瑰舰寮忎繚瀛橈紝渚涘叾浠栫被鑾峰彇 鍗虫枃绔犲悕锛氭枃绔犺矾寰�)
};

#endif